package com.tiancheng.trade.merchant.dto.requestdto;

/**
 * @Author: likailun
 * @Description: 分页参数
 * @Date: create in 2021/7/16 2:19 下午
 */
public class BasePageDTO {
    private Integer currentPage;
    private Integer pageSize;


    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }


    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize) {
            pageSize = 10;
        }
        return pageSize;
    }
}
